package com.service;

import com.bean.*;

import java.util.List;

public interface PurchaseService {

    Purchase purchaseInit(User user,Supplier supplier);

    List<PurchaseInfo> getAllGoods(User user, Supplier supplier);

    boolean addGoods(Goods goods, int number, Purchase purchase);

    boolean deleteGoods(int key);

    boolean updateGoodsNumber(int key,int number);

    boolean inWarehouse(User user, Supplier supplier);

    boolean haveNotInPurchaseExist(User user,Supplier supplier);

    boolean isGoodsExist(Goods goods);

    List<Purchase> getAllPurchase();

    Purchase getSelectPurchase(int key);

    List<PurchaseInfo> getSelectGoods(Purchase purchase);

    List<Purchase> getFindPurchase(String supplier,String startDate,String endDate);
}
